<?php $this->menu=array(
	array('label'=>'View Match', 'url'=>array('match/view', 'id'=>$model->_id)),
	array('label'=>'Add Details', 'url'=>array('detail/add','match_id'=>$model->_id)),
);
?>
<h1>Mass Add details to match <?php echo $model->fullMatch; ?></h1>

<div style="clear:both;" class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'detail-form',
	'enableAjaxValidation'=>false,
)); ?>
<div>
Μία φάση σε κάθε γραμμή, τα στοιχεία χωρισμένα με κόμμα</br>
<div style="width: 120px">
<table>
<tr><th>Τύπος</th><th>Λεπτό</th><th>Παίκτης</th><th>Σκορ</th><th>Έδρα</th></tr>
<tr><td>1,</td><td>15,</td><td>Παπαδάκης,</td><td>,</td><td>0</td></tr>
<tr><td>0,</td><td>45.1,</td><td>Κανάρης,</td><td>0-1,</td><td>1</td></tr>
</table>
</div>
</div>
<div style="width: 200px;float:left">
<table width="100%">
<tr><th colspan="2">Τύπος</th></tr>
<?php foreach (Detail::$TYPES as $key=>$value) { ?>
    <tr><td width="20%"><?php echo $key?></td><td width="80%"><?php echo $value?></td></tr>
<?php }?>
</table>
</div>
<div>
<div style="width: 200px">
<table width="100%">
<tr><th colspan="2">Εδρα</th></tr>
<?php foreach (Detail::$SIDE as $key=>$value) { ?>
    <tr><td width="20%"><?php echo $key?></td><td width="80%"><?php echo $value?></td></tr>
<?php }?>
</table>
</div>
<div style="clear: both">

<?php echo CHtml::textArea("details","",array("cols"=>60,"rows"=>12));?>
</div>
<div>
<?php echo Chtml::hiddenField("match_id",$model->_id);?>
<?php echo CHtml::submitButton("Add");?>
</div>
<?php $this->endWidget(); ?>
</div>
</div>